Image processing apparatus, image processing method and memory medium

ABSTRACT

An object of the present invention is to solve dissatisfaction of the user who cannot take out the source data in a case where a code image in the original can not be decoded. In order to accomplish the above object, the invention provides an image processing apparatus comprising code image detection unit that determines whether or not an code image is included in the original image data, code image decoding unit that decodes the code image to extract source data if it is determined that the code image is included by the code image detection unit, and synthesizing unit that encodes information obtained by decoding a partial area of the code image and overlaying encoded information on the area where the code image is included, if the code image decoding unit is successful in decoding only the partial area of the code image.

CROSS REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No.13/164,198 filed 20 Jun. 2011, which is a continuation of U.S. patentapplication Ser. No. 12/046,575 filed 12 Mar. 2008 (now U.S. Pat. No.7,986,443), the entire contents thereof are herein incorporated byreference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an image processing apparatus, an imageprocessing method and a memory medium in which the code images can betreated.

2. Description of the Related Art

Conventionally, it is common that the code image is created by encodingsource data and the created code image (e.g., bar code, two-dimensionalcode, electronic watermark) is printed on the output paper, as disclosedin Japanese Patent Laid-Open No. 2001-344588.

Further, the code image is scanned by a scanner to acquire source data,which is used to manage the document or merchandise, as disclosed inJapanese Patent Laid-Open No. 2000-013584.

SUMMARY OF THE INVENTION

It is easy to obtain the copied matter from an output paper where thecode image is printed. Simply, the output paper may be put on an imageforming apparatus. However, if any part of the code image iscontaminated on the output paper, the copied matter is obtained in whichthe source data cannot be taken out (extracted) from the code image.

Then, the person who receives the copied matter is dissatisfied at nottaking out information from the copied matter.

The invention has been achieved to solve such dissatisfaction of theuser (person who receives the copied matter).

In order to solve the above-mentioned problem, the present inventionprovides an image forming apparatus comprising code image detection unitthat determines whether or not an code image is included in the originalimage data, code image decoding unit that decodes the code image toextract source data if it is determined that the code image is includedby the code image detection unit, and synthesizing unit that encodesinformation obtained by decoding a partial area of the code image andoverlaying it on the area where the code image is included, if the codeimage decoding unit is successful in decoding only the partial area ofthe code image.

According to this invention, when source data can not be taken out ofthe code image because there is a crease on the code image part of thecopied matter that becomes the original or the code image iscontaminated due to some cause, the code image can be deleted from theoriginal image data. In the above case, it is unnecessary to distributethe copied matter out of which source data cannot be taken to the usersfor distribution. Moreover, since the distributor can select a deletionpattern of the code image, it is possible to improve the convenience ofthe image forming apparatus that can treat the code image.

Further features of the present invention will become apparent form thefollowing description of exemplary embodiments with reference to theattached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing an image forming system according tothe present invention;

FIG. 2 is an appearance view of an input/output device in the imageforming apparatus according to the invention;

FIG. 3 is a block diagram showing the image forming apparatus accordingto the invention;

FIG. 4 is a diagram showing conceptually tile data according to theinvention;

FIG. 5 is a block diagram of a scanner image processor according to theinvention;

FIG. 6 is a block diagram of a printer image processor according to theinvention;

FIG. 7 is an explanatory view of an operating section according to theinvention;

FIG. 8 is an explanatory view of the operating section according to theinvention;

FIG. 9 is a flowchart according to the invention;

FIG. 10 is a view showing a job execution selection screen according tothe invention;

FIG. 11 is a flowchart according to the invention;

FIG. 12 is a view of a code image area according to the invention;

FIG. 13 is a view of a printed image after post-processing according tothe invention;

FIG. 14 is a view of the printed image after post-processing accordingto the invention; and

FIG. 15 is a view of the printed image after post-processing accordingto the invention.

DESCRIPTION OF THE EMBODIMENTS

The best mode for carrying out the present invention will be describedbelow with reference to the drawings.

Embodiment 1 <Printing System (FIG. 1)>

An embodiment 1 will be described below in detail with reference to thedrawings. FIG. 1 is a block diagram showing a printing system accordingto the embodiment of the invention. In this system, a host computer (PC)40 and three image forming apparatuses 10, 20 and 30 are connected to aLAN 50, although the number of connections in the printing system of theinvention is not limited to three. As a connection method in thisembodiment, the LAN is applied, but the connection method is not limitedto this. For example, any network such as WAN (public network), a serialtransmission method such as a USB, and a parallel transmission methodsuch as Centronics or SCSI may be applicable.

The host computer (hereinafter referred to as a PC) 40 has a function ofpersonal computer. This PC 40 sends or receives a file or an electronicmail via the LAN 50 or WAN, using an FTP or SMB protocol. Also, the PC40 can make a print instruction via a printer driver to the imageforming apparatuses 10, 20 and 30.

The image forming apparatus 10 and the image forming apparatus 20 havethe same configuration. The image forming apparatus 30 has only a printfunction but does not have a scanner section, which the image formingapparatus 10 or 20 has. In the following, for the sake of simplerexplanation, the configuration of the image forming apparatus will bedescribed in detail by paying attention to the image forming apparatus10 of the image forming apparatuses 10 and 20.

The image forming apparatus 10 comprises a scanner 13 that is an imageinput device, a printer 14 that is an image output device, an operatingsection 12 that is a user interface (UI), and a controller unit(Controller Unit) 11. The controller unit 11 is connected to the scanner13 and the printer 14 and controls the overall operation of the imageforming apparatus 10.

The image forming apparatus 20 comprises a scanner 23 that is an imageinput device, a printer 24 that is an image output device, an operatingsection 22 that is a user interface (UI), and a controller unit(Controller Unit) 21. The controller unit 21 is connected to the scanner23 and the printer 24 and controls the overall operation of the imageforming apparatus 20.

The image forming apparatus 30 comprises a printer 33 that is an imageoutput device, an operating section 32 that is a user interface (UI),and a controller unit (Controller Unit) 31 that is connected to all ofthem and controls the overall operation of the image forming apparatus30.

<Image Forming Apparatus 10 (FIG. 2)>

FIG. 2 shows the appearance of the image forming apparatus 10. Thescanner 13 inputs the reflected light obtained by exposing and scanningan image on the original into a CCD to convert information of the imageinto an electrical signal. The scanner section further converts theelectrical signal into a luminance signal of each color of R, G and B,and outputs the luminance signal as image data to the controller unit11.

The original is set on a tray 202 of an original feeder 201. If the userinstructs the start of reading from the operating section 12, anoriginal read instruction is given from the controller unit 11 to thescanner 13. Upon receiving this instruction, the scanner 13 performs anoriginal scanning operation by feeding the originals one by one from thetray 202 of the original feeder 201. A method of reading the originalsmay not be the automatic feeding with the original feeder 201, but maybe one in which the original is scanned as an exposure section is movedwith the original laid on a glass plate, not shown.

The printer 14 is an image forming device for forming the image datareceived from the controller unit 11 on the paper. In this embodiment,an image forming method is electro photography, using a photoconductordrum and a photoconductor belt, but the invention is not limited to thismethod. For example, an ink jet method for performing the printing onthe paper by discharging the ink from an array of fine nozzles is alsoapplicable. Also, the printer 14 is provided with a plurality of papercassettes 203, 204 and 205 capable of selecting different paper sizes ordifferent paper orientations. The printed paper not subjected topost-processing is outputted to a paper output tray 206. Apost-processing part 207 performs the post-processing for the paperafter printing. The examples of post-processing may include stapling,punching or cutting the exhausted paper.

<Detailed Explanation of Controller Unit 11 (FIG. 3)>

FIG. 3 is a block diagram for explaining in more detail theconfiguration of the controller unit 11 in the image forming apparatus10.

The controller unit 11 is electrically connected to the scanner 13 andthe printer 14, while being connected to the PC 40 or an externalapparatus via the LAN 50 or WAN 331. Thereby, the image data or deviceinformation can be inputted or outputted.

A CPU 301 generally controls the access to various kinds of device beingconnected, based on a control program or the like stored in a ROM 303,and also generally controls various kinds of process performed withinthe controller. A RAM 302 is a system work memory for the CPU 301 tooperate, and for temporarily storing image data. This RAM 302 iscomposed of an SRAM for holding the stored contents even after poweroff, or a DRAM in which the stored contents are erased after power off.A ROM 303 stores a boot program of the apparatus. An HDD 304 is a harddisk drive that can store the system software or image data.

An operating section I/F 305 is the interface for connecting a systembus 310 and the operating section 12. This operating section I/F 305receives the image data displayed on the operating section 12 from thesystem bus 310 and outputs it to the operating section 12, and outputsthe information inputted from the operating section 12 to the system bus310.

A network I/F 306 is connected to the LAN 50 and the system bus 310 toinput or output the information. A modem 307 is connected to the WAN 331and the system bus 310 to input or output the information. A binaryimage rotating section 308 transforms the direction of image data beforesending. A binary image compression/decompression section 309 transformsthe resolution of image data before sending to the predeterminedresolution or the resolution according to the ability of the party atthe other end. In the compression and decompression, a JBIG, MMR, MR orMH method may be employed. An image bus 330 is a transmission path forsending or receiving the image data, and composed of a PCI bus or IEEE1394.

A scanner image processing section 312 makes the correction, working andediting of the image data received via a scanner I/F 311 from thescanner 13. The scanner image processing section 312 determines whetheror not the received image data is color original or black-and-whiteoriginal, or character original or photographic original. And thedetermination result is associated with the image data. Such associatedinformation is called attribute data. The details of the processperformed in this scanner image processing section 312 will be describedlater.

A compressing section 313 receives the image data and divides it intoblock units of 32 pixels×32 pixels. This image data of 32 pixels×32pixels is called tile data. FIG. 4 shows this tile data conceptually. Inthe original (paper medium before reading), an area corresponding tothis tile data is called a tile image. To the tile data, the averageluminance information on the block of 32 pixels×32 pixels and thecoordinate position of the tile image on the original are appended asthe header information. Further, the compressing section 313 compressesthe image data composed of plural pieces of tile data. A decompressingsection 316 decompresses the image data composed of plural pieces oftile data, performs the raster expansion, and sends data to a printerimage processing section 315.

A printer image processing section 315 receives the image data sent fromthe decompressing section 316, and performs the image processing for theimage data by referring to the attribute data associated with this imagedata. The image data after the image processing is outputted via aprinter I/F 314 to the printer 14. The details of the process performedin this printer image processing section 315 will be described later.

An image conversion part 317 makes a predetermined conversion processfor the image data. This image conversion part comprises the followingprocessing parts.

A decompressing section 318 decompresses the received image data. Acompressing section 319 compresses the received image data. A rotatingsection 320 rotates the received image data. A scaling section 321 makesa resolution transformation process (e.g., from 600 dpi to 200 dpi) forthe received image data. A color space converting section 322 transformsa color space of the received image data. This color space convertingsection 322 can make a well-known substratum skip process using a matrixor table, a well-known LOG transformation process (RGB→CMY), or awell-known output color correction process (CMY→CMYK). Abinary-multivalued converting section 323 converts the received imagedata of two gray levels to the image data of 256 gray levels.Conversely, a multivalued-binary converting section 324 converts thereceived image data of 256 gray levels to the image data of two graylevels through an error diffusion process or the like.

A synthesizing section 327 synthesizes two received image data togenerate one image data. In synthesizing two image data, a method ofmaking the average value of luminance values for the pixels ofsynthesizing object a synthesized luminance value, or a method of makingthe luminance value of the pixel lighter in the luminance level asynthesized luminance value of pixels may be applied. Also, a method ofmaking the luminance value of the pixel darker in the luminance level asynthesized luminance value of the pixels may be applied. Further, amethod of deciding the luminance value after synthesizing through thelogical sum operation, logical product operation or exclusive ORoperation on the pixels of synthesizing object may be applied. All ofthese synthesizing methods are well known. A thinning section 326 thinsthe pixels of the received image data to transform the resolution andgenerate the ½, ¼ or ⅛ image data. A shifting section 325 adds ordeletes a marginal portion to or from the received image data.

An RIP 328 connected to the compressing section 329 receivesintermediate data generated based on the PDL code data sent from the PC40 and generates the bit map data (multi-value).

<Detailed Explanation of Scanner Image Processing Section 312 (FIG. 5)>

FIG. 5 shows the internal configuration of the scanner image processingsection 312.

The scanner image processing section 312 receives the image datacomposed of a luminance signal of 8 bits for each of RGB. This luminancesignal is converted into a normal luminance signal not dependent on thefilter color of CCD by a masking processing section 501.

A filter processing section 502 corrects the spatial frequency of thereceived image data arbitrarily. This processing part makes anarithmetical operation, using a 7×7 matrix, for example, on the receivedimage data. Incidentally, in a copier or decoder, a character mode, aphotograph mode, or a character/photograph mode can be selected as thecopy mode by pressing an original selection tab 704 in FIG. 7. Herein,when the character mode is selected by the user, the filter processingsection 502 applies a character filter over the entire image data. Also,when the photograph mode is selected, it applies a photographic filterover the entire image data. Also, when the character/photograph mode isselected, it switches the filters adaptively for each pixel according toa character photograph determination signal (part of attribute data).Namely, it is decided whether or not the photographic filter orcharacter filter is applied for each pixel. For the photographic filter,a factor for smoothing only the high frequency component is set up. Thisis intended to make roughness of the image less conspicuous. Also, forthe character filter, a factor for making higher edge enhancement is setup. This is intended to enhance the sharpness of character.

A histogram generating section 503 samples the luminance data of eachpixel making up the received image data. More particularly, theluminance data within a rectangular area surrounded by the start pointand the end point designated in a main scanning direction and asub-scanning direction is sampled at a constant pitch in the mainscanning direction and the sub-scanning direction. And the histogramdata is generated based on the sampled results. The generated histogramdata is used to estimate a substratum level in performing the substratumskip process. An input side gamma correcting section 504 makes the gammacorrection for conversion to the luminance data having the non-linearcharacteristic, using a table or the like.

A color monochrome decision section 505 determines whether or not eachpixel making up the received image data is chromatic or achromaticcolor, and has the image data associated with the determination resultas a color monochrome determination signal (part of attribute data).

A character photograph decision section 506 determines whether or noteach pixel making up the image data is pixel composing the character,pixel composing the dot, pixel composing the character in the dots orpixel making up the solid image, based on the pixel value of each pixeland the pixel values of peripheral pixels around each pixel. Any otherpixel is the pixel making up a white area. And the image data isassociated with the determination result as a character photographdetermination signal (part of attribute data).

A decoding section 507 detects the existence of code image data, if itexists within the image data outputted from the masking processingsection 501. And the detected code image data is decoded to take out theinformation.

<Detailed Explanation of Printer Image Processing Section 315 (FIG. 6)>

FIG. 6 shows a processing flow performed in the printer image processingsection 315.

A groundwork skipping processing section 601 skips (removes) thesubstratum color of image data, using a histogram generated by thescanner image processing section 312. A monochrome generating section602 converts color data into monochrome data. A Log converting section603 transforms the luminance density. This Log converting section 603transforms the image data inputted in RGB into the image data of CMY,for example. An output color correcting section 604 corrects the outputcolor. For example, it converts the image data inputted in CMY into theimage data of CMYK, using a table or matrix. An output side gammacorrecting section 605 makes the correction for a signal value inputtedinto this output side gamma correcting section 605 to be proportional tothe reflected density value after copy output. A code image synthesizingsection 607 synthesizes the code image data generated through an<encoding process>, as will be described later, and the (original) imagedata. A halftone correcting section 606 makes a halftone processaccording to the levels of gray scale in the printer unit for output.For example, the received image data having high level of gray scale isconverted into the values of binary or 32-level gray scale.

Each processing part in the scanner image processing section 312 orprinter image processing section 315 may directly output the receivedimage data without processing it. Such a process in which the processingpart passes data without processing is represented as “through theprocessing part” in the following.

<Encoding Process>

The CPU 301 can control an encoding process for the predeterminedinformation (this predetermined information includes the device number,print time information, user ID information and the document) togenerate the code image data.

In this specification, the code image unit the image such astwo-dimensional code image or bar code image, or the electronicwatermark image generated by an electronic watermark technique.

Further, the CPU 301 can perform the control to send the generated codeimage data to the code image synthesizing section 607 within the printerimage processing section 315, using a data bus, not shown.

The above control (generation control for code image, and sendingcontrol) is performed by executing a program stored in the RAM 302.

The explanation of the controller unit 11 is made as above.

<Explanation of Operation Screen>

FIG. 7 shows an initial screen 700 in the image forming apparatus 10. Aregion 701 indicates whether or not the image forming apparatus 10 isready for copying, with the set number of copies. An original selectiontab 704 is a tab for selecting the type of original, in which if thistab is pressed, a selection menu for three kinds of character,photograph and character/photograph modes pops up. An application modetab 705 is a tab for setting various kinds of image editing process. Apost-processing tab 706 is a tab for making the setting of various kindsof finishing. A duplex setting tab 707 is a tab for setting the duplexreading and the duplex printing. A reading mode tab 702 is a tab forselecting the original reading mode. If this tab is pressed, a selectionmenu for three kinds of color/black/automatic (ACS) modes pops up. Ifthe color mode is selected, the color copy is performed, and if theblack mode is selected, the monochrome copy is performed. Also, if theACS mode is selected, the copy mode is decided according to a monochromecolor determination signal.

FIG. 8 shows an application mode setting screen 800 that is displayedwhen pressing the application mode tab 705 as shown in FIG. 7. Forexample, the application mode setting screen 800 has a binding marginsetting tab 801, a frame erasure setting tab 802, a bookbinding settingtab 803, a negative-positive setting tab 804 and a mirror image settingtab 805. The binding margin setting tab 801 involves printing theoriginal image, shifted up, down, left or right, on the output paper atthe time of outputting. Also, the frame erasure setting tab 802 involvesspecifying a frame for the original image and making the pixel outsidethe frame the white pixel. And the bookbinding setting tab 803 involvesbookbinding the original image for output. And the negative-positivesetting tab 804 involves reversing the original image in white andblack, and the mirror image setting tab 805 involves printing the mirrorimage of the original image by left and right reversal.

If the negative-positive setting tab 804 is pressed, a negative-positiveON/OFF screen, not shown, is displayed to allow selection of whether thenegative-positive is outputted. The initial value is set not to benegative-positive. If the mirror image setting tab 805 is pressed, amirror image ON/OFF screen, not shown, is displayed to allow selectionof whether or not the mirror image is outputted. The initial value isset not to output the mirror image. Herein, a code image printing tab806 involves setting a mode for newly overlaying the code image on theoriginal image. The information newly converted into the code image mayinclude a document file stored in the HDD 304 within the PC 40 or theimage forming apparatus or a character string inputted from a virtualkeyboard, not shown. The invention is an example of creating theoriginal on which the code image is printed.

FIG. 9 is a flowchart for a process of inputting the original on whichthe code image is printed and outputting the copied matter.

At S10001, the CPU 301 performs the control to send the original read bythe scanner 13 as image data via the scanner I/F 311 to the scannerimage processing section 312. The scanner image processing section 312processes this image data as shown in FIG. 5 to generate the attributedata together with the new image data. Also, the image data isassociated with this attribute data. Further, at S10002, the decodingsection 507 within the scanner image processing section 312 detects theexistence of code image data, if any.

Herein, FIG. 12 shows an original image stored in the RAM 302. With theupper left corner of the original image 1201 as an origin, the x axis istaken along the main scanning direction and the y axis is taken alongthe sub-scanning direction. An code image data area 1202 is arectangular area (area surrounded by X0, X1, Y0 and Y1), which isdetermined by the decoding section 507 detecting the code imagedetection marks 1203 to 1207, as shown in FIG. 12. The upper, lower,left and right of the code image data can be determined by detecting thecode image detection marks present consecutively such as 1205 and 1206(determined as upper left). And the code image data area 1202 includes ametadata area 1208 and a non-metadata area 1209. The non-metadata area1209 is the dot line area surrounded by the code image detection marks1203 to 1205 and 1207 at four corners within the code image data, andthe metadata area 1208 is the other area.

If the decoding section 507 detects the code image data at S10002 asshown in FIG. 9, the CPU 301 transfers to S10003 to determine the areaof original image in the detected code image data and store it in theRAM.

And at S10004, the decoding section 507 decodes the metadata area in thecode image data. If all the metadata area is successfully decoded atS10004, the CPU 301 sends the decoded metadata to the RAM 302, using thedata bus, not shown, and shifts the processing to S10005. Also, if thereis any metadata area that fails in decoding at S10004, the CPU 301decodes and sends only a part of the metadata area that is decodable tothe RAM 302, using the data bus, not shown, and shifts the processing toS10006.

At S10005, the decoding section 507 decodes the non-metadata area withinthe code image data. If all the non-metadata area is successfullydecoded, the CPU 301 sends the decoded non-metadata (such as documentdata or character code) to the RAM 302, using the data bus, not shown,and shifts the processing to S10011. If there is any non-metadata areathat fails in decoding at S10005, the CPU 301 decodes and sends only apart of the non-metadata area that is decodable to the RAM 302, usingthe data bus, not shown, and shifts the processing to S10006. At S10011,the CPU 301 performs the control to re-encode the decoded metadata andnon-metadata to generate the code image and send the generatedre-encoded image data to the code image synthesizing section 607 withinthe printer image processing section 315, and shifts the processing toS10012.

At S10006, the CPU 301 warns the user of a failure in decoding the codeimage data on a job execution selection screen as shown in FIG. 10, andprompts the user to select a post-processing method.

And if the user makes a job continuation instruction on the jobexecution selection screen at S10007 as indicated in FIG. 9, the CPUshifts the processing to S10008, or if the user makes a job stopinstruction, the CPU shifts the processing to S10014 to stop the job.

If the user makes an instruction to delete the code image area atS10008, the CPU shifts the processing to S10009, or if not, the CPUshifts the processing to S10015.

At S10015, the CPU 301 reads the metadata decoded at S10004 from the RAM302, using the data bus, not shown.

Also, at S10015, the CPU 301 reads the non-metadata decoded at S10005from the RAM 302, using the data bus, not shown.

Further, at S10015, the CPU 301 re-encodes the read metadata andnon-metadata to generate the code image. At this time, the code image isgenerated, using all the code image data area 1202 on which the codeimage of all the metadata and non-metadata (all the source data) isprinted. Accordingly, the CPU 301 can re-encode the metadata andnon-metadata (less than all the source data) read at S10015 by appendingthe error correcting codes in greater amount by the code image data areathat fails in decoding in this case. Thereby, even if the source codeimage data is incompletely decoded, the CPU can re-encode the data byappending more error correcting codes than contained in the source codeimage data.

Thereafter, the CPU 301 performs the control to send the generatedre-encoded image data to the code image synthesizing section 607 withinthe printer image processing section 315, and shifts the processing toS10012.

At S10009, the CPU 301 generates a white image having the same size asthe size of the code image data area made up of the white pixels. Todelete the code image from the image after raster expansion (originalimage after image processing), such white image is generated. And atS10010, the post-processing for the white image is performed, as needed,and the CPU performs the control to send the image data afterpost-processing as the post-processed image data to the code imagesynthesizing section 607 within the printer image processing section315, and shifts the processing to S10012. The post-processing for thewhite image will be described later using FIG. 12.

At S10012 as indicated in FIG. 9, the compressing section 313 dividesthe image data generated by the scanner image processing section 312into block units of 32 pixels×32 pixels to generate the tile data.Further, the compressing section 313 compresses the image data after thescanner image processing made up of plural pieces of tile data. The CPU301 performs the control to send and store the image data compressed bythe compressing section 313 to and in the RAM 302. The image data afterthe scanner image processing is sent to the image conversion part 317 toperform the image processing, as needed, and then sent to the RAM 302again where it is stored. At S10013, the CPU 301 performs the control tosend the compressed image data stored in the RAM 302 to thedecompressing section 316. Further, at this step, the decompressingsection 316 decompresses the compressed image data. Further, thedecompressing section 316 makes the raster expansion of decompressedimage data made up of plural pieces of tile data. The image data afterraster expansion is sent to the printer image processing section 315.The printer image processing section 315 edits the image data accordingto the attribute data associated with the image data after rasterexpansion. This process is shown in FIG. 6.

Herein, the code image data generated at S10011 as indicated in FIG. 9or the post-processed image data generated at S10010 and the image dataafter raster expansion are synthesized. More particularly, the codeimage synthesizing section 607 synthesizes the image data outputted fromthe output side gamma correcting section 605 and the code image datagenerated at S10011 or the post-processed image data generated atS10010. This code image synthesizing section 607 overwrites the originalimage data with the code image data generated at S10011 or thepost-processed image data generated at S10010. That is, if overwritten,the original image data is destroyed in the area of the code image datagenerated at S10011 or the post-processed image data generated atS10010.

And the halftone correcting section 606 makes a halftone process for thecomposite image data obtained by synthesizing according to the levels ofgray scale for the printer unit for output. The composite image dataafter the halftone process is sent via the printer I/F 314 to theprinter 14, which then prints the composite image data on the outputpaper.

FIG. 10 shows a job execution selection screen 1000 that is displayed bythe CPU 301 at S10006. If a job continuation button 1001 is pressed, theCPU 301 performs the control to continue the printing without making thepost-processing for the code image data area (i.e., directly transfersfrom S10008 to S10012).

If a code image deletion and job continuation button 1002 is pressed,any one of a white patch button 1003, a metadata encoding button 1004and a metadata text button 1005 can be selected. The metadata encodingbutton 1004 or the metadata text button 1005 is displayed in gray out sothat it can not be selected unless the metadata area is successfullydecoded at S10004 in FIG. 9. This control is performed by the CPU.

If the user selects any one of the white patch button 1003, the metadataencoding button 1004 and the metadata text button 1005, the CPU 301receiving the selection performs the post-processing at S10010 in FIG.9. Also, if the user presses the job stop button 1006, the CPU 301receiving the pressing performs the control to stop the printingprocess. In an example of FIG. 10, it is supposed that the non-metadatais the document file, and the metadata is the URL of the document file.Therefore, the user can easily understand the wording of the metadataencoding button 1004 and the metadata text button 1005, but this is oneexample and does not limit the embodiment.

FIG. 11 is a flowchart for post-processing at S10010 in FIG. 9, on theassumption of FIG. 10.

At S10101 as indicated in FIG. 11, the CPU 301 determines whether or notthe white patch button 1003 as shown in FIG. 10 is pressed. If the whitepatch button 1003 is pressed, the CPU does not perform thepost-processing and exits out of the flow. The white image datagenerated at 51009 is outputted as the post-processed image data atS10012.

If the white patch button 1003 is not pressed, the CPU shifts theprocessing to S10102. At S10102, the CPU 301 determines whether or notthe metadata encoding button 1004 as shown in FIG. 10 is pressed. And ifthe metadata encoding button 1004 is pressed, the CPU shifts theprocessing to S10103, or if the metadata encoding button 1004 is notpressed, the CPU shifts the processing to S10104.

At S10103, the CPU 301 executes a program stored in the RAM 302 for thedecoded metadata stored in the RAM 302 at S10004 to generate the codeimage data in which only the metadata is decoded. And this code imagedata is outputted as the post-processed image data.

At S10104, the CPU 301 executes a program stored in the RAM 302 for thedecoded metadata stored in the RAM 302 at S10004 to generate the textimage data of metadata. And this text image data is outputted as thepost-processed image data at S10012.

FIGS. 13 to 15 show the images immediately before printing. FIG. 13 isthe result where the white patch button 1003 as shown in FIG. 10 ispressed, FIG. 14 is the result where the metadata encoding button 1004as shown in FIG. 10 is pressed, and FIG. 15 is the result where themetadata text button 1005 as shown in FIG. 10 is pressed.

In the above manner, when the original image data including the codeimage in which the source data is encoded is inputted into the imageforming apparatus according to this embodiment, the source data can beextracted by decoding the code image, if it is determined that the codeimage is included in the original image data. Herein, the source dataunit the data encompassing the non-metadata and the metadata. Also, thedecoding of the code image is called the code image decoding.

The metadata is printed in the metadata area of the original image, andthe non-metadata is printed in the non-metadata area of the originalimage. Herein, in the metadata area, each dot included in thetwo-dimensional code of meta-data is printed larger, and very resistantto contamination of the original image. On the other hand, in thenon-metadata area, each dot included in the two-dimensional code ofnon-metadata is printed smaller, and less resistant to contamination ofthe original image.

That is, in the metadata area, the image on the metadata area can bedecoded, even if the original image is more or less contaminated,whereas in the non-metadata area, the image on the non-metadata area cannot be decoded if the original image is contaminated even slightly.

In this embodiment, the non-metadata is the contents data that the userwants to include within the two-dimensional code. For example, it ismusic data or Excel data. This non-metadata has a very large amount ofdata.

On the other hand, the metadata is the data concerning the non-metadata,and important data, but has a smaller amount of data. In this manner,since the metadata has a smaller amount of data and is important data,the metadata is printed more resistant.

In this embodiment, the two-dimensional code is equal to thetwo-dimensional sign.

Other Embodiments

Further, the present invention may be applied to a system composed of aplurality of apparatuses (e.g., computer, interface unit, reader,printer, etc.) or an apparatus of one component (e.g., image formingapparatus, printer, facsimile apparatus, etc.).

Also, the object of the invention is achieved by a computer (CPU or MPU)in the system or apparatus reading and executing the program codes froma memory medium storing the program codes for implementing a procedureof the flowchart as shown in the foregoing embodiment. In this case, theprogram codes themselves read from the memory medium realize thefunctions of the foregoing embodiment. Therefore, the program codes andthe memory medium storing the program codes also construct one of theinventions.

As such a memory medium to store the program codes, for example, it ispossible to use a floppy (registered trademark) disk, a hard disk, anoptical disk, an optomagnetic disk, a CD-ROM, a CD-R, a magnetic tape, anonvolatile memory card, a ROM or the like.

Also, the functions of the foregoing embodiment may be realized byexecuting the read program codes on the computer. In addition, it willbe also obviously understood that the present invention alsoincorporates a case where an OS (Operating System) operating on thecomputer executes a part or all of the actual processes on the basis ofthe instructions of the program codes, and the functions of theforegoing embodiment are realized by the processes.

Further, the program codes read from the memory medium are written intoa memory provided for a function extension board inserted into thecomputer or a function expansion unit connected to the computer.Thereafter, a CPU or the like provided for the function expansion boardor function expansion unit executes a part or all of the actualprocesses on the basis of instructions of the program codes, and thefunctions of the foregoing embodiment are realized by the processes.

While the present invention has been described with reference toexemplary embodiments, it is to be understood that the invention is notlimited to the disclosed exemplary embodiments. The scope of thefollowing claims is to be accorded the broadest interpretation so as toencompass all such modifications and equivalent structures andfunctions.

This application claims the benefit of Japanese Patent Application No.2007-063216, filed 13 Mar. 2007, which is hereby incorporated byreference herein in its entirety.

1. An apparatus comprising: a decoding unit that performs a decoding processing of a two-dimensional code; and an encoding unit that performs an encoding processing using at least part of a decoded result obtained by the decoding unit in a case where the decoding unit successfully decodes the two-dimensional code, wherein the two-dimensional code includes an area resistant to contamination and an area less resistant to contamination.
 2. The apparatus according to claim 1, wherein the decoding unit starts the decoding processing of the area less resistant to contamination after the decoding unit ends the decoding processing of the area resistant to contamination.
 3. The apparatus according to claim 1, wherein the decoding unit starts the decoding processing of the area less resistant to contamination after the decoding unit starts the decoding processing of the area resistant to contamination.
 4. The apparatus according to claim 1, wherein the decoding unit ends decoding processing of the area less resistant to contamination after the decoding unit ends decoding processing of the area resistant to contamination.
 5. An apparatus comprising: an extracting unit that extracts source data from a two-dimensional code; and a generating unit that generates a two-dimensional code using at least part of the extracted source data in a case where the extracting unit successfully extracts the source data from the two-dimensional code, wherein the two-dimensional code includes an area resistant to contamination and an area less resistant to contamination.
 6. The apparatus according to claim 5, wherein the extracting unit starts extraction of the source data of the area less resistant to contamination from the area less resistant to contamination in the two-dimensional code after the extracting unit ends extraction of the source data of the area resistant to contamination from the area resistant to contamination in the two-dimensional code.
 7. The apparatus according to claim 5, wherein the extracting unit starts extraction of the source data of the area less resistant to contamination from the area less resistant to contamination in the two-dimensional code after the extracting unit starts extraction of the source data of the area resistant to contamination from the area resistant to contamination in the two-dimensional code.
 8. The apparatus according to claim 5, wherein the extracting unit ends extraction of the source data of the area less resistant to contamination from the area less resistant to contamination in the two-dimensional code after the extracting unit ends extraction of the source data of the area resistant to contamination from the area resistant to contamination in the two-dimensional code.
 9. An apparatus comprising: a first extracting unit that extracts source data of an area resistant to contamination in a two-dimensional code; a second extracting unit that extracts source data of an area less resistant to contamination in the two-dimensional code; an encoding unit that generates a two-dimensional code using the extracted source data of the area resistant to contamination in the two-dimensional code, wherein the second extracting unit starts extraction of the source data of the area less resistant to contamination after the first extracting unit starts extraction of the source data of the area resistant to contamination.
 10. An apparatus comprising: a first extracting unit that extracts source data of an area resistant to contamination in a two-dimensional code; a second extracting unit that extracts source data of an area less resistant to contamination in the two-dimensional code; an encoding unit that generates a two-dimensional code using the extracted source data of the area resistant to contamination in the two-dimensional code, wherein the second extracting unit ends extraction of the source data of the area less resistant to contamination after the first extracting unit ends extraction of the source data of the area resistant to contamination.
 11. An image processing method comprising: a decoding step of decoding a two-dimensional code; and an encoding step of performing an encoding processing using at least part of a decoded result obtained in the decoding step in a case where the decoding step successfully decodes the two-dimensional code, wherein the two-dimensional code includes an area resistant to contamination and an area less resistant to contamination.
 12. An image processing method comprising: an extracting step of extracting source data from a two-dimensional code; and a generating step of generating a two-dimensional code using at least part of the extracted source data in a case where the extracting step successfully extracts the source data from the two-dimensional code, wherein the two-dimensional code includes an area resistant to contamination and an area less resistant to contamination.
 13. An image processing method comprising: a first extracting step of extracting source data of an area resistant to contamination in a two-dimensional code; a second extracting step of extracting source data of an area less resistant to contamination in the two-dimensional code; an encoding step of generating a two-dimensional code using the extracted source data of the area resistant to contamination in the two-dimensional code, wherein the second extracting step starts extraction of the source data of the area less resistant to contamination after the first extracting step starts extraction of the source data of the area resistant to contamination.
 14. An image processing method comprising: a first extracting step of extracting source data of an area resistant to contamination in a two-dimensional code; a second extracting step of extracting source data of an area less resistant to contamination in the two-dimensional code; an encoding step of generating a two-dimensional code using the extracted source data of the area resistant to contamination in the two-dimensional code, wherein the second extracting step ends extraction of the source data of the area less resistant to contamination after the first extracting step ends extraction of the source data of the area resistant to contamination.
 15. A non-transitory computer-readable storage medium storing a computer program executable by a computer to execute an image processing method comprising: a decoding step of decoding a two-dimensional code; and an encoding step of performing an encoding processing using at least part of a decoded result obtained in the decoding step in a case where the decoding step successfully decodes the two-dimensional code, wherein the two-dimensional code includes an area resistant to contamination and an area less resistant to contamination.
 16. A non-transitory computer-readable storage medium storing a computer program executable by a computer to execute an image processing method comprising: an extracting step of extracting source data from a two-dimensional code; and a generating step of generating a two-dimensional code using at least part of the extracted source data in a case where the extracting step successfully extracts the source data from the two-dimensional code, wherein the two-dimensional code includes an area resistant to contamination and an area less resistant to contamination.
 17. A non-transitory computer-readable storage medium storing a computer program executable by a computer to execute an image processing method comprising: a first extracting step of extracting source data of an area resistant to contamination in a two-dimensional code; a second extracting step of extracting source data of an area less resistant to contamination in the two-dimensional code; an encoding step of generating a two-dimensional code using the extracted source data of the area resistant to contamination in the two-dimensional code, wherein the second extracting step starts extraction of the source data of the area less resistant to contamination after the first extracting step starts extraction of the source data of the area resistant to contamination.
 18. A non-transitory computer-readable storage medium storing a computer program executable by a computer to execute an image processing method comprising: a first extracting step of extracting source data of an area resistant to contamination in a two-dimensional code; a second extracting step of extracting source data of an area less resistant to contamination in the two-dimensional code; an encoding step of generating a two-dimensional code using the extracted source data of the area resistant to contamination in the two-dimensional code, wherein the second extracting step ends extraction of the source data of the area less resistant to contamination after the first extracting step ends extraction of the source data of the area resistant to contamination. 